package com.cupster.func_db_dbflow.db_main.alter;

import com.cupster.func_db_dbflow.db_main.AppDB;
import com.cupster.func_db_dbflow.db_main.table.User;
import com.raizlabs.android.dbflow.annotation.Migration;
import com.raizlabs.android.dbflow.sql.SQLiteType;
import com.raizlabs.android.dbflow.sql.migration.AlterTableMigration;

@Migration(version = AppDB.DB_VERSION, database = AppDB.class)
public class AddSingleName extends AlterTableMigration<User> {

    public AddSingleName(Class<User> table) {
        super(table);
    }

    @Override
    public void onPreMigrate() {
        addColumn(SQLiteType.TEXT ,"single_name");
    }
}
